import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

// 导入 mock
import "@/mock"

// 注册 全局组件
import TypeNav from "@/components/TypeNav"
Vue.component("TypeNav",TypeNav)
// 注册 分页组件
import Pagination from "@/components/Pagination"
Vue.component("Pagination",Pagination)

// 导入路由
import router from "@/router"

// 导入 store
import store from './store'

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus=this;
  }
}).$mount('#app')
